Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partially registries merge #384

Merged
merged 2 commits into from
Jan 10, 2019
Merged

Partially registries merge #384

merged 2 commits into from
Jan 10, 2019

Conversation

awinogradov
Copy link
Member

No description provided.

*
* @param registry external registry
*/
merge(registry?: Registry) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А зачем registry является опциональным? Ты ведь ниже делаешь мердж с пустым объектом, кажется, что это не особо имеет смысл

expect(registry.merge(overrides).snapshot()).to.eql(snapshot);
});

it('should not affect registry in merge with undefined', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Какой смысл от такого теста?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В покрытии 100% ;)))

@awinogradov awinogradov merged commit 9e4560d into master Jan 10, 2019
@awinogradov awinogradov deleted the dynamicaly-merge branch January 10, 2019 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants